package com.diaohw.module.file.obj.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "树节点返回数据")
public class CatalogTreeVo extends CatalogVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "子类")
    private List<CatalogTreeVo> children = new ArrayList<CatalogTreeVo>();

    @Schema(description = "文件数量")
    private int fileCount = 0;


    @Getter
    @Setter
    public static class FileCountBO {

        private int number;

        private String catalogId;

    }

}
